package com.snk.back.dao;


import com.snk.pojo.SysUser;
import com.snk.pojo.SysUserDept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysUserDao {



    List<SysUserDept> findPageObjects(@Param("username") String username);

    /**
     * 修改用户状态信息
     * @param id
     * @param valid
     * @param modifiedUser
     * @return
     */
    int validById(@Param("id") Integer id,
              @Param("valid") Integer valid,
              @Param("modifiedUser") String  modifiedUser);


    int insertObject(SysUser sysUser);


    SysUserDept findObjectById(Integer id);

int updateObject(SysUser sysUser);

int updatePassword(@Param("password")String password,
                   @Param("salt")String salt,
                   @Param("id")Integer id);

SysUser findUserByUserName(String username);
}
